package com.继承03;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Father {

    private String name;
    private Integer age;


    public void show(){
        System.out.println("name:"+name+",age:"+age);
    }

    private void sleep(){
        System.out.println("father在睡觉");
    }

}
